<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\Guige;
class Product extends Model
{
    protected $table = 'product';
    protected $fillable = [
        'id', 'ggid','category','name','thumb','image','des','price','sort','is_tj','state','created_at', 'updated_at','xiaoliang','tc','proid','hunsu','zixuan'
    ];
    public function proGg()
    {
        return $this->belongsTo(Guige::class, 'ggid', 'id');
    }
}
